from framework.frontend.speech_client import synthesize_speech

try:
    path = synthesize_speech("彭玉涛是个大笨蛋，算了，彭玉涛天天开心", output_file="yutaopeng.mp3")
    print(f"音频生成成功，保存在: {path}")
except Exception as e:
    print("语音合成失败:", e)